<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddParentIdToUsersTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('frontend_users', function (Blueprint $table) {
            $table->integer('parent_id')->default(0)
                ->after('agent_id')->comment('上级用户id');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
    }
}
